projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b90ba2
)
cell-renderer: add the CELL style class to the editing widget
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 30 Jan 2012 22:52:44 +0000
(17:52 -0500)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Tue, 31 Jan 2012 15:04:26 +0000
(10:04 -0500)
When we create an editing widget, add the CELL style class to it, for
identification by the themes.
gtk/gtkcellrenderer.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcellrenderer.c
b/gtk/gtkcellrenderer.c
index d701b74c4fbc096cb838039ba0adc885e4f2fe7b..3e9529489a9fcfd7d9430cf1701b6ee6bb337fb8 100644
(file)
--- a/
gtk/gtkcellrenderer.c
+++ b/
gtk/gtkcellrenderer.c
@@
-865,6
+865,8
@@
gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
(GdkRectangle *) background_area,
(GdkRectangle *) cell_area,
flags);
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (editable)),
+ GTK_STYLE_CLASS_CELL);
g_signal_emit (cell,
cell_renderer_signals[EDITING_STARTED], 0,